<template>
  <div id="question">
    <div class="main">
      <div v-for="(item,index) in dataInfos" :key="index">
        <Row>
          <!-- 标题 -->
          <Col span="24" class="title">{{item.title}}</Col>
        </Row>
        <Row>
          <!-- 内容 -->
          <Col span="24" class="Number" v-html="item.content"></Col>
        </Row>
      </div>
    </div>
  </div>
</template>

<script>
//导入iview-ui组件
import { Row, Col } from "view-design";

export default {
  name: "question",
  //组件注册
  components: {
    Row,
    Col
  },
  //传入属性
  props:['dataInfos'],
  data() {
    return {
      
    };
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>

<style scoped>
/* 局部UI样式 */
.main {
  margin: 25px;
}
.title {
  padding-top: 30px;
}
.Number {
  margin-top: 12px;
  padding-bottom: 20px;
  font-size: 12px;
  line-height: 20px;
  border-bottom: 1px solid #e8e8e8;
}
</style>